import { createContext, useContext } from 'react'
import comment from './Comment'
import counter from './Counter'

class Store {
  counter = counter
  comment = comment
}

const store = new Store()

const Context = createContext(store)

export default function useStore() {
  return useContext(Context)
}
